package com.spark.colliery.module.agency

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.spark.colliery.R
import com.spark.common.BaseActivity
import kotlinx.android.synthetic.main.frag_track_task_info.*

class TrackTaskInfoActivity : BaseActivity() {
    private var taskId = ""

    companion object {
        fun actionStart(host: Activity, taskId: String) {
            val intent = Intent(host, TrackTaskInfoActivity::class.java)
            intent.putExtra("taskId", taskId)
            host.startActivity(intent)
        }
    }

    override fun contentResId(): Int {
        return R.layout.frag_track_task_info
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        taskId = intent?.getStringExtra("taskId") ?: ""

        iv_back.setOnClickListener { finish() }
        tv_title.text = "任务追踪"
    }
}